package com.atguigu.mock.entity;

import com.atguigu.common.base.entity.AutoIdBase;
import com.atguigu.common.comment.Comment;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import java.time.LocalDateTime;

@Entity
@Getter
@Setter
@NoArgsConstructor
@Comment("产品分类表")
public class ProductCategory extends AutoIdBase {
    @Comment("分类名称")
    private String name;
    @Comment("描述")
    private String description;

    public ProductCategory(LocalDateTime createTime, String name, String description) {
        super(createTime);
        this.name = name;
        this.description = description;
    }
}
